package com.ruoyi.chain.cooperation.domain;

import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 合作公司商品关联对象 t_chain_cooperation_commodity
 *
 * @author Shawn
 * @date 2024-02-26
 */
@Data
public class ChainCooperationCommodity extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 审批状态
     */
    @Excel(name = "审批状态",readConverterExp = "PENDING=待审核，APPROVED=已签收,REJECTED=已退回")
    private String approvalStatus;
    /**
     * 退回原因
     */
    @Excel(name = "退回原因")
    private String returnReason;


    /**
     * 关联ID
     */
    private Long id;

    /**
     * 合作公司ID
     */
    @Excel(name = "合作公司ID")
    private Long cooperationId;


    private String cooperationName;

    /**
     * 商品ID
     */
    @Excel(name = "商品ID")
    private Long commodityId;

    private String commodityName;

    private String image;

    /**
     * 批发价格
     */
    @Excel(name = "批发价格")
    private BigDecimal wholesalePrice;

    /**
     * 库存数量
     */
    @Excel(name = "库存数量")
    private Long quantity;

    /**
     * 乐观锁
     */
    private Long REVISION;

    /**
     * 创建人
     */
    private String createdBy;

    /**
     * 创建时间
     */
    private Date createdTime;

    /**
     * 更新人
     */
    private String updatedBy;

    /**
     * 更新时间
     */
    private Date updatedTime;


}
